package com._51doit.beans;

import java.io.Serializable;

/**
 * @Date 2021/8/24
 * @Created by HANGGE
 * @Description 用来封装mysql中tb_stu表中的数据
 * 要求 类结构和表结构对应
 * 字段和属性名
 * 字段和属性数据类型
 * +---------+-------------+------+-----+---------+-------+
 * | Field   | Type        | Null | Key | Default | Extra |
 * +---------+-------------+------+-----+---------+-------+
 * | id      | varchar(11) | YES  |     | NULL    |       |
 * | name    | varchar(20) | YES  |     | NULL    |       |
 * | age     | int(11)     | YES  |     | NULL    |       |
 * | tel     | char(11)    | YES  |     | NULL    |       |
 * | gender  | char(1)     | YES  |     | NULL    |       |
 * | score   | double      | YES  |     | NULL    |       |
 * | address | varchar(20) | YES  |     | NULL    |       |
 * +---------+-------------+------+-----+---------+-------+
 *
 */
public class Student implements Serializable {
    private  String id ;
    private  String name ;
    private  int age ;
    private  String tel ;
    private  String gender ;
    private  double score ;
    private String  address ;

    public Student() {
    }

    public Student(String id, String name, int age, String tel, String gender, double score, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.tel = tel;
        this.gender = gender;
        this.score = score;
        this.address = address;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", tel='" + tel + '\'' +
                ", gender='" + gender + '\'' +
                ", score=" + score +
                ", address='" + address + '\'' +
                '}';
    }
}
